package com.yueyang.sojourn.server.config;

import com.qiniu.storage.Region;
import com.qiniu.storage.UploadManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-24 12:18
 */
@Configuration
public class QiniuConfig {

    @Bean
    public UploadManager uploadManager() {
        com.qiniu.storage.Configuration configuration = new com.qiniu.storage.Configuration(Region.autoRegion());
        return new UploadManager(configuration);
    }


}
